#include <gtest/gtest.h>
#include "common.h"

using namespace ::std;

template <typename T = int>
void printVec(vector<T>& out) {
    for_each(out.begin(), out.end(), [=](T x) { cout << x << " "; });
    cout << endl;
}

TEST(InorderTraversalCheck, testInorderTraversal_3) {
	vector<int> vec = {1,INT_MAX,2,3};
	TreeNode* root = makeVectorToBinaryTree(vec);
	vector<int> out = makeBinaryTreeToVector(root);
	printVec(out);
	// EXPECT_TRUE(vector<int>({1,3,2}) == (solution.inorderTraversal(root)));
}

int main() {
	::testing::InitGoogleTest();
	return RUN_ALL_TESTS();
}
